package cn.youfule.dp.singleton;

public class LazySingleton {

	private LazySingleton() {
		
	}
	
	private static LazySingleton singleton = null;
	
	public static LazySingleton getInstance() {
		if(singleton == null) {
			synchronized(LazySingleton.class) {
				if(singleton == null) {
					singleton = new LazySingleton();
				}
			}
		}
		return singleton;
	}
}
